/* Import mobile-specific styles - must be first */
@import './styles/mobile.css';

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Reset and base styles */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 微信浏览器：禁用橡皮筋效果 */
  overscroll-behavior-y: contain;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f0f2f5;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  /* 微信浏览器：禁止字体大小调整 */
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

#root {
  /* 使用CSS变量支持微信浏览器动态视口高度 */
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Responsive utilities */
@media (max-width: 640px) {
  .hide-on-mobile {
    display: none !important;
  }
}

@media (min-width: 641px) {
  .show-on-mobile {
    display: none !important;
  }
}
